package org.example.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.example.dto.SelectRandomImagesResultDto;
import org.example.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2025-03-27
 */
public interface GoodsMapper extends BaseMapper<Goods> {
    List<Goods> FindGoods(Integer offset , Integer size); //分页查询

    List<Goods> Classification(String gCatagory,String gBrand,Integer offset,Integer size);//分类查询

    List<Goods> FindGoodsByPrice(String isASC, Integer offset, Integer size);

    List<SelectRandomImagesResultDto> selectRandomImages();

    Integer CountGoods();//查询商品总数
}
